// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

import FuBenManager from "../../Models/FuBens/FuBenManager";

const { ccclass, property } = cc._decorator;

@ccclass
export default class FuBenBossUI extends cc.Component {

    @property(cc.Label)
    timeTxt: cc.Label = null;

    protected onLoad(): void {
        this.timeTxt.string = "60";
    }

    protected update(dt: number): void {
        this.timeTxt.string = "" + FuBenManager.single.challengeTime.toFixed(1);
    }
}
